// MyRTMP.cpp: 定义应用程序的入口点。
//

#include "MyRTMP.h"
#include <string>

#include <Winsock2.h>
#pragma comment(lib,"ws2_32.lib")
#include "rtmp.h"
#pragma comment(lib,"librtmp.lib")

using namespace std;

int InitSockets()
{
    WORD version;
    WSADATA wsaData;
    version = MAKEWORD(1, 1);
    return (WSAStartup(version, &wsaData) == 0);
}

int main()
{
    InitSockets();
    RTMP rtmp = { 0 };
    RTMP_Init(&rtmp);
    rtmp.Link.timeout = 25;//超时设置
    cout << "Hello CMake." << endl;
    cout << "1111." << endl;
    return 0;
}
